package com.deer.wms.inventory.dao;

import com.deer.wms.inventory.model.stockTake.StockProfitLoss;
import com.deer.wms.project.root.core.mapper.Mapper;
import com.deer.wms.project.root.mapper.SuperMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;


public interface StockProfitLossMapper extends Mapper<StockProfitLoss>,SuperMapper<StockProfitLoss> {

    //根据盘点任务号查询是否有生成过盈亏单
    Integer selectIsCreate(@Param("stockMasterCode") String stockMasterCode, @Param("wareId") Integer wareId);

    //查询盘盈和盘亏单
    List<StockProfitLoss> findByProfitLoss(@Param("wareId") Integer wareId, @Param("profitOrLoss") Integer profitOrLoss);


}
